package com.zan.pattern.responsibility;

/**
 * @Author Zan
 * @Create 2024/4/27 11:07
 * @Description : 小组长类（具体的处理者）
 * @ClassName: GroupLeader
 */
public class GroupLeader extends Handler {

    public GroupLeader() {
        // 设置能处理的请假天数
        super(0, Handler.NUM_ONE);
    }

    @Override
    protected void handlerLeave(LeaveRequest request) {
        System.out.println(request.getName() + "请假" + request.getNum() + "天，" + request.getContent());
        System.out.println("小组长审批：同意");
    }
}
